﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DsGiayTo" targetNamespace="http://tempuri.org/DsGiayTo.xsd" xmlns:mstns="http://tempuri.org/DsGiayTo.xsd" xmlns="http://tempuri.org/DsGiayTo.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="QLKD29112012ConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="QLKD29112012ConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.QLKDMain.Properties.Settings.GlobalReference.Default.QLKD29112012ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="DMLoaiGiayToTableAdapter" GeneratorDataComponentClassName="DMLoaiGiayToTableAdapter" Name="DMLoaiGiayTo" UserDataComponentName="DMLoaiGiayToTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="QLKD29112012ConnectionString (Settings)" DbObjectName="QLKD29112012.dbo.DMLoaiGiayTo" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [DMLoaiGiayTo] WHERE (([ID] = @Original_ID) AND ([TenLoai] = @Original_TenLoai) AND ((@IsNull_MoTa = 1 AND [MoTa] IS NULL) OR ([MoTa] = @Original_MoTa)))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TenLoai" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenLoai" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MoTa" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MoTa" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MoTa" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MoTa" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [DMLoaiGiayTo] ([TenLoai], [MoTa]) VALUES (@TenLoai, @MoTa);
SELECT ID, TenLoai, MoTa FROM DMLoaiGiayTo WHERE (ID = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TenLoai" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenLoai" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MoTa" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MoTa" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        DMLoaiGiayTo.*
FROM            DMLoaiGiayTo</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [DMLoaiGiayTo] SET [TenLoai] = @TenLoai, [MoTa] = @MoTa WHERE (([ID] = @Original_ID) AND ([TenLoai] = @Original_TenLoai) AND ((@IsNull_MoTa = 1 AND [MoTa] IS NULL) OR ([MoTa] = @Original_MoTa)));
SELECT ID, TenLoai, MoTa FROM DMLoaiGiayTo WHERE (ID = @ID)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TenLoai" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenLoai" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MoTa" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MoTa" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_ID" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_TenLoai" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TenLoai" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@IsNull_MoTa" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="MoTa" SourceColumnNullMapping="true" SourceVersion="Original" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MoTa" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MoTa" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ID" ColumnName="ID" DataSourceName="QLKD29112012.dbo.DMLoaiGiayTo" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@ID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="ID" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="ID" DataSetColumn="ID" />
              <Mapping SourceColumn="TenLoai" DataSetColumn="TenLoai" />
              <Mapping SourceColumn="MoTa" DataSetColumn="MoTa" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DsGiayTo" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_DataSetName="DsGiayTo" msprop:Generator_UserDSName="DsGiayTo" msprop:EnableTableAdapterManager="true">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="DMLoaiGiayTo" msprop:Generator_UserTableName="DMLoaiGiayTo" msprop:Generator_RowDeletedName="DMLoaiGiayToRowDeleted" msprop:Generator_TableClassName="DMLoaiGiayToDataTable" msprop:Generator_RowChangedName="DMLoaiGiayToRowChanged" msprop:Generator_RowClassName="DMLoaiGiayToRow" msprop:Generator_RowChangingName="DMLoaiGiayToRowChanging" msprop:Generator_RowEvArgName="DMLoaiGiayToRowChangeEvent" msprop:Generator_RowEvHandlerName="DMLoaiGiayToRowChangeEventHandler" msprop:Generator_TablePropName="DMLoaiGiayTo" msprop:Generator_TableVarName="tableDMLoaiGiayTo" msprop:Generator_RowDeletingName="DMLoaiGiayToRowDeleting">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="ID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_UserColumnName="ID" msprop:Generator_ColumnPropNameInRow="ID" msprop:Generator_ColumnVarNameInTable="columnID" msprop:Generator_ColumnPropNameInTable="IDColumn" type="xs:int" />
              <xs:element name="TenLoai" msprop:Generator_UserColumnName="TenLoai" msprop:Generator_ColumnPropNameInRow="TenLoai" msprop:Generator_ColumnVarNameInTable="columnTenLoai" msprop:Generator_ColumnPropNameInTable="TenLoaiColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="100" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MoTa" msprop:Generator_UserColumnName="MoTa" msprop:Generator_ColumnPropNameInRow="MoTa" msprop:Generator_ColumnVarNameInTable="columnMoTa" msprop:Generator_ColumnPropNameInTable="MoTaColumn" minOccurs="0">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Choose" msprop:Generator_UserColumnName="Choose" msprop:Generator_ColumnPropNameInRow="Choose" msprop:Generator_ColumnVarNameInTable="columnChoose" msprop:Generator_ColumnPropNameInTable="ChooseColumn" type="xs:boolean" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:DMLoaiGiayTo" />
      <xs:field xpath="mstns:ID" />
    </xs:unique>
  </xs:element>
</xs:schema>